import tableHeightV2 from './tableHeightV2';

const install = function(Vue) {
  // 绑定v-adaptive指令
  Vue.directive('tableHeightV2', tableHeightV2);
};

if (window.Vue) {
  window['tableHeightV2'] = tableHeightV2;
  // eslint-disable-next-line no-undef
  Vue.use(install);
}

tableHeightV2.install = install;

export default tableHeightV2;
